Multiple Selector
class MultipleSelector<T>(selectedItems: List<T>, safeChanges: Boolean) : Selector<T>
Content copied to clipboard
Realization of Selector with multiple selected elements. On calling of toggleSelection this realization will select passed element OR deselect it if it is already in selectedItems
Parameters
safe Changes
Set to false to disable using of mutex for synchronizing changes on toggleSelection
Constructors
MultipleSelector
Link copied to clipboard
fun <T> MultipleSelector(selectedItems: List<T> = emptyList(), safeChanges: Boolean = true)
Content copied to clipboard
Functions
clear Selection
Link copied to clipboard
open suspend override fun clearSelection()
Content copied to clipboard
force Deselect
Link copied to clipboard
force Select
Link copied to clipboard
toggle Selection
Link copied to clipboard
Properties
itemSelected
Link copied to clipboard
itemUnselected
Link copied to clipboard
selectedItems
Link copied to clipboard